package com.yurendao.shop.cart.service;

import com.yurendao.shop.cart.domain.Cart;
import com.yurendao.shop.cart.domain.CartItem;
import com.yurendao.shop.cart.service.exception.CartException;
import com.yurendao.shop.pager.domain.ClassifyBean;

import java.util.List;

/**
 * Created by kong on 15/10/13.
 * 购物车业务层
 */
public interface CartService {

    public void insertCartItem(Cart cart) throws CartException;

    public void deleteCartItem(Cart cart) throws CartException;

    public List<CartItem> getCartItems(Cart cart,ClassifyBean classifyBean) throws CartException;

    public void updateCartItem(Cart cart) throws CartException;

    public void deleteBatchCartItem(List<Cart> carts) throws CartException;
}
